package com.prodog.gamemodule.gameworld.monster.entity;

import com.prodog.gamemodule.fight.effect.entity.FightEffect;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

;

@Data
public class Monster {
    private String id;
    private String name;    //怪物名称
    private String title;   //怪物的称号
    private MonsterProp prop;   //怪物属性
    private String fightAi; //战斗AI类名
    private List<FightEffect> effects = new ArrayList<>();  //被动效果

    public MonsterProp getProp() {
        prop.setId(id);
        prop.setCurHp(prop.getHp());
        prop.setCurMp(prop.getMp());
        return prop;
    }
}
